<template>
  <el-table :data="tableData" border style="width: 100%">
    <el-table-column prop="date" label="头像" width="180"> </el-table-column>
    <el-table-column prop="name" label="姓名" width="180"> </el-table-column>
    <el-table-column prop="address" label="班级"> </el-table-column>
    <el-table-column prop="product" label="项目"> </el-table-column>
    <el-table-column label="操作" class="lastTd">
      <button class="btn1">查看</button>
      <button class="btn2">编辑</button>
      <button class="btn3">删除</button>
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  data() {
    return {
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市",
          product: "222",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市",
          product: "222",
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市",
          product: "222",
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市",
          product: "222",
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
button {
  height: 25px;
  width: 50px;
  border-radius: 5px;
  background-color: rgb(252, 133, 192);
  border-color: rgb(252, 133, 192);
  color: white;
  margin: 0 3px;
}
.btn3 {
  background-color: rgb(112, 197, 247);
  border-color: rgb(112, 197, 247);
}
</style>
